// 导入Element Plus图标
import {
    System, User, Peoples, TreeTable, Tree, Post, Dict, Edit, Message,
    Monitor, Online, Job, Druid, Server, Redis, RedisList, Tool,
    Build, Code, Swagger, Guide, Log, Form, Logininfor
} from '@element-plus/icons-vue'

// 图标映射表（与后端返回的icon字段对应）
export const iconMap = {
    system: System,
    user: User,
    peoples: Peoples,
    'tree-table': TreeTable,
    tree: Tree,
    post: Post,
    dict: Dict,
    edit: Edit,
    message: Message,
    monitor: Monitor,
    online: Online,
    job: Job,
    druid: Druid,
    server: Server,
    redis: Redis,
    'redis-list': RedisList,
    tool: Tool,
    build: Build,
    code: Code,
    swagger: Swagger,
    guide: Guide,
    log: Log,
    form: Form,
    logininfor: Logininfor,
    '#': null // 不需要图标的情况
}
